package com.dragon.modules.yuegou.mapper.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.product.CategoryEntity;
import com.dragon.modules.yuegou.model.product.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 商品类型 Mapper接口
 *
 * @author px
 * @date 2019-03-29 16:06:34
 * @version 2.0
 */
@Component("proCategoryMapper")
public interface CategoryMapper extends BaseMapper<CategoryEntity> {

    /**
     * 获取积分商品分类
     * @param busdId
     * @return
     */
    List<Category> selectCategoryList(String busdId);

    /**
     * 获取存在商品的二级分类
     * @param busdId
     * @return
     */
    List<Category> categoryList(@Param("busdId") String busdId,@Param("showModule") Integer showModule);

    /**
     * 限时折扣商品的二级分类
     * @param busdId
     * @return
     */
    List<Category> categoryListForLimitSales(String busdId);

}
